@import 'scss-imports/cssvars';

:host {
  box-sizing: border-box;
  column-gap: 5px;
  display: flex;
  overflow: hidden;
  padding: 0 5px;
  padding: 0 5px;
  position: relative;
  width: 100%;

  @media (max-width: $breakpoint-md) {
    display: grid;
    max-width: 100vw;
    width: 100%;
  }
}

.left-column,
.right-column {
  align-items: center;
  display: flex;
  flex: 1 1 25%;
  flex-direction: column;
  justify-content: center;
  max-width: 200px;
  min-height: 100%;
  min-width: 105px;
  overflow: auto;
  position: relative;

  > * {
    max-height: 100%;
    position: absolute;
  }

  @media (max-width: $breakpoint-md) {
    max-width: 100%;
  }
}

.left-column {
  @media (max-width: $breakpoint-md) {
    margin-top: 10px;

    > * {
      position: unset;
    }
  }
}

.right-column {
  @media (max-width: $breakpoint-md) {
    margin-bottom: 10px;
    min-height: 100px;
  }
}

.enclosure-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  row-gap: 12px;

  @media (max-width: $breakpoint-md) {
    margin-bottom: 0;
    margin-top: 10px;
  }

  .image-container {
    align-items: center;
    display: flex;
    flex: 1;
    overflow: hidden;

    @media (max-width: $breakpoint-md) {
      margin-top: 0;
    }

    .enclosure-image {
      flex: 1;

      @media (max-width: $breakpoint-md) {
        padding: 10px;
      }
    }
  }

  .side-switch {
    flex-shrink: 0;
  }
}
